package com.study.annotation.sensitiveDemo;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @RequestMapping(value="/test")
    public TestEntity test()  {

        //只能直接返回实体？
        TestEntity entity = TestEntity.builder()
                .userId(1234567890)
                .userName("张三")
                .password("12")
                .address("河南省郑州市中原区")
                .email("xxxx@xx.com")
                .fixedPhone("0838-5553792")
                .mobilePhone("13888888888")
                .carLicense("豫P3U253")
                .bankCard("1679374639283740")
                .idCard("412711223344556677")
                .custom("289073458794")
                .noMask("我是不需要数据脱敏的字段")
                .build();
        return entity;

    }
}
